// 任务调度API
import {postAxios,getAxios} from '@/lib/http';
  export const taskNodeApi = {
    // 查询任务节点列表
    getTaskNodeListPage: (data) => {
      return postAxios('/taskNode/page/query', data);
    },
    getTaskNodeList: (data) => {
      return getAxios('/taskNode/listTaskNode', data);
    },
    // 添加任务节点
    addTaskNode: (data) => {
      return postAxios('/taskNode/add', data);
    },
    //更新任务节点
    updateTaskNode: (data) => {
        return postAxios('/taskNode/update', data);
      },
    //删除任务节点
    deleteTaskNode: (taskNodeId) => {
      return getAxios('/taskNode/deleteById/' + taskNodeId);
    }
  };
  